project(kernal_rtos)

aux_source_directory(Source DIR_LIB_SRCS)
aux_source_directory(Source/portable/MemMang DIR_LIB_SRCS)
aux_source_directory(Source/portable/ThirdParty/GCC/Posix DIR_LIB_SRCS)
aux_source_directory(Source/portable/ThirdParty/GCC/Posix/utils DIR_LIB_SRCS)

list(REMOVE_ITEM DIR_LIB_SRCS   "Source/portable/MemMang/heap_1.c"
                                "Source/portable/MemMang/heap_2.c"
                                "Source/portable/MemMang/heap_3.c"
                                "Source/portable/MemMang/heap_5.c")

add_library(${PROJECT_NAME}  ${DIR_LIB_SRCS})

target_include_directories(${PROJECT_NAME}  PUBLIC "./" "Source/include")
target_include_directories(${PROJECT_NAME}  PUBLIC
                                "Source/portable/ThirdParty/GCC/Posix"
                                "Source/portable/ThirdParty/GCC/Posix/utils")
target_compile_options(${PROJECT_NAME} PRIVATE -g)